<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>店面诊断结果管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#contentTable tbody tr").click(function(){
				$("#contentTable tbody tr").removeClass("select_active");
				$(this).addClass("select_active");
				var url = "${ctx}/sms/storeDiagnoseDetail?parentId=" + this.id;
				window.open(url,"detailFrame");
			});
			$("#contentTable tbody tr:first-child").click();
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<div data-role="navbar">
	    <ul>
	    	<li><a href="#" class="ui-btn-active">店面诊断历史记录</a></li>
	        <li><a href="${ctx}/sms/storeDiagnose/form">店面诊断</a></li>
	    </ul>
	</div>
	<tags:message content="${message}"/>
	<table id="contentTable" data-role="table" class="ui-responsive table-stroke">
		<thead><tr><th>店面名称</th><th>诊断日期</th><th>总分</th><th>理论业绩</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="storeDiagnose">
			<tr id="${storeDiagnose.id}">
				<td>${storeDiagnose.store.name}</td>
				<td>${fns:formatDate(storeDiagnose.diagnose_date,'yyyy-MM-dd')}</td>
				<td>${storeDiagnose.total_score}</td>
				<td>${storeDiagnose.t_performance}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<div id="bottom">
		<iframe id="detailFrame" name="detailFrame" src="about:blank"  style="overflow:visible;"
			scrolling="no" frameborder="no" width="100%" height="100%"></iframe>
	</div>
</body>
</html>
